package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

//试题表
@Document(collection ="topic" )
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Topic implements Serializable {

    private static final long serialVersionUID = -2760563120828664891L;

    @Id
    private ObjectId id;//主键
    private Integer qid;//问卷id
    private Integer topId;//试题编号
    private String question;//题目
}
